<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::get('user/mobileCode', 'CustomerController@mobileCode');
Route::post('user/toLogin', 'CustomerController@toLogin');
Route::post('user/upUser', 'CustomerController@upUser');
Route::get('user/index', 'CustomerController@index');
Route::get('user/getUser', 'CustomerController@getUser');

Route::get('humans/getList', 'HumansController@getList');
Route::post('humans/create', 'HumansController@create');
Route::get('humans/getHumans', 'HumansController@getHumans');

Route::get('voice/getList', 'VoiceController@getList');
Route::post('voice/create', 'VoiceController@create');

Route::get('points/getList', 'PointsController@getList');

Route::get('order/getList', 'OrderController@getList');
Route::post('order/create', 'OrderController@create');

Route::post('upImages', 'PublicsController@upImages');

